from odoo import api,models,fields

class TongJiToProvince(models.Model):
    _name="tongji.to.province"
    _description="中国疫情分省处理"

    state_id = fields.Many2one('res.country.state', domain="[('country_id', '=', 48)]",string='省')
    total_confirm = fields.Integer(string='累计确诊')
    state_code = fields.Char(related='state_id.code')